@page "/Radar_Chart"

<Radar Data=data1 Config="config1" />

<Divider>动手实验</Divider>
<DynamicExample @ref="@example">
    <Radar @ref="@chart" />
</DynamicExample>

@code{

    public IChartComponent chart;
    DynamicExample example;

    protected override void OnAfterRender(bool firstRender)
    {
        base.OnAfterRender(firstRender);
        example.Chart = chart;
    }

    #region 示例1

    object[] data1 = new object[] {
        new  {
    item= "Design",
    score= 70,
  },
        new  {
    item= "Development",
    score= 60,
  },
        new  {
    item= "Marketing",
    score= 60,
  },
        new  {
    item= "Users",
    score= 40,
  },
        new  {
    item= "Test",
    score= 60,
  },
        new  {
    item= "Language",
    score= 70,
  },
        new  {
    item= "Technology",
    score= 50,
  },
        new  {
    item= "Support",
    score= 30,
  },
        new  {
    item= "Sales",
    score= 60,
  },
        new  {
    item= "UX",
    score= 50,
  },
};
    RadarConfig config1 = new RadarConfig()
    {
        XField = "item",
        YField = "score",
        RadiusAxis = new ValueAxis()
        {
            Grid = new BaseAxisGrid()
            {
                AlternateColor = new string[] { "rgba(0, 0, 0, 0.04)", null },
            },
        },
        Area = new RadarViewConfigArea()
        {
            Visible = false,
        },
        Point = new RadarViewConfigPoint()
        {
            Visible = true,
        },
    };

    #endregion 示例1


}

